﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace BookOnline.Data
{
    public class Orders
    {
        private string _OID;
        private string _ODate;
        private string _MemberID;
        private string _OStatus;

        public string OID { get { return _OID; } set { _OID = value; } }
        public string ODate { get { return _ODate; } set { _ODate = value; } }
        public string MemberID { get { return _MemberID; } set { _MemberID = value; } }
        public string OStatus { get { return _OStatus; } set { _OStatus = value; } }

        public Orders OrdersIDataReader(IDataReader dr)
        {
            Orders obj = new Orders();
            obj.OID = (dr["OID"] is DBNull) ? string.Empty : dr["OID"].ToString();
            obj.ODate = (dr["ODate"] is DBNull) ? string.Empty : dr["ODate"].ToString();
            obj.MemberID = (dr["MemberID"] is DBNull) ? string.Empty : dr["MemberID"].ToString();
            obj.OID = (dr["OStatus"] is DBNull) ? string.Empty : dr["OStatus"].ToString();
            return obj;
        }
    }
}
